class PeopleGame extends egret.Sprite{
	public people:egret.MovieClip;//人物
	public constructor() {
		super();
		this.addEventListener(egret.Event.ADDED_TO_STAGE,this.init,this);
	};
	// 初始化
	private init(){
		// 人物
		var dataUrl = RES.getRes("playerqixing_json");
		var text:egret.Texture = RES.getRes("playerqixing_png");
		var mcFactory:egret.MovieClipDataFactory = new egret.MovieClipDataFactory( dataUrl, text );
		this.people = new egret.MovieClip( mcFactory.generateMovieClipData( "benpao" ) );
		this.people.scaleX =0.7;
		this.people.scaleY= 0.7;
		this.people.x = (this.stage.stageWidth - this.people.width) / 2.3;
		this.people.y= 300;
		// 阴影
		var bix:egret.Bitmap = new egret.Bitmap();
		bix.texture= RES.getRes("box_png");
		bix.width=bix.texture.textureWidth / 3.8;
		bix.height=bix.texture.textureHeight / 3.8;
		bix.x=(this.stage.stageWidth - bix.width) / 2;
		bix.y=350;
		this.addChild(bix);
		this.addChild(this.people);
		this.people.gotoAndPlay("start",-1);
	};
}